// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by sidekick. DO NOT EDIT.

/// A dyn-compatible, crate-private version of [super::IcebergCatalogService].
#[async_trait::async_trait]
pub trait IcebergCatalogService: std::fmt::Debug + Send + Sync {
    async fn get_iceberg_catalog_config(
        &self,
        req: crate::model::GetIcebergCatalogConfigRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IcebergCatalogConfig>>;

    async fn list_iceberg_namespaces(
        &self,
        req: crate::model::ListIcebergNamespacesRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListIcebergNamespacesResponse>>;

    async fn get_iceberg_namespace(
        &self,
        req: crate::model::GetIcebergNamespaceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IcebergNamespace>>;

    async fn create_iceberg_namespace(
        &self,
        req: crate::model::CreateIcebergNamespaceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IcebergNamespace>>;

    async fn delete_iceberg_namespace(
        &self,
        req: crate::model::DeleteIcebergNamespaceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<()>>;

    async fn update_iceberg_namespace(
        &self,
        req: crate::model::UpdateIcebergNamespaceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::UpdateIcebergNamespaceResponse>>;

    async fn list_iceberg_table_identifiers(
        &self,
        req: crate::model::ListIcebergTableIdentifiersRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListIcebergTableIdentifiersResponse>>;

    async fn create_iceberg_table(
        &self,
        req: crate::model::CreateIcebergTableRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<api::model::HttpBody>>;

    async fn delete_iceberg_table(
        &self,
        req: crate::model::DeleteIcebergTableRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<()>>;

    async fn get_iceberg_table(
        &self,
        req: crate::model::GetIcebergTableRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<api::model::HttpBody>>;

    async fn load_iceberg_table_credentials(
        &self,
        req: crate::model::GetIcebergTableRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::LoadIcebergTableCredentialsResponse>>;

    async fn update_iceberg_table(
        &self,
        req: crate::model::UpdateIcebergTableRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<api::model::HttpBody>>;

    async fn register_iceberg_table(
        &self,
        req: crate::model::RegisterIcebergTableRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<api::model::HttpBody>>;

    async fn get_iceberg_catalog(
        &self,
        req: crate::model::GetIcebergCatalogRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IcebergCatalog>>;

    async fn list_iceberg_catalogs(
        &self,
        req: crate::model::ListIcebergCatalogsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListIcebergCatalogsResponse>>;

    async fn delete_iceberg_catalog(
        &self,
        req: crate::model::DeleteIcebergCatalogRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<()>>;

    async fn update_iceberg_catalog(
        &self,
        req: crate::model::UpdateIcebergCatalogRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IcebergCatalog>>;

    async fn create_iceberg_catalog(
        &self,
        req: crate::model::CreateIcebergCatalogRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IcebergCatalog>>;

    async fn failover_iceberg_catalog(
        &self,
        req: crate::model::FailoverIcebergCatalogRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::FailoverIcebergCatalogResponse>>;
}

/// All implementations of [super::IcebergCatalogService] also implement [IcebergCatalogService].
#[async_trait::async_trait]
impl<T: super::IcebergCatalogService> IcebergCatalogService for T {
    /// Forwards the call to the implementation provided by `T`.
    async fn get_iceberg_catalog_config(
        &self,
        req: crate::model::GetIcebergCatalogConfigRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IcebergCatalogConfig>> {
        T::get_iceberg_catalog_config(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_iceberg_namespaces(
        &self,
        req: crate::model::ListIcebergNamespacesRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListIcebergNamespacesResponse>> {
        T::list_iceberg_namespaces(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_iceberg_namespace(
        &self,
        req: crate::model::GetIcebergNamespaceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IcebergNamespace>> {
        T::get_iceberg_namespace(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn create_iceberg_namespace(
        &self,
        req: crate::model::CreateIcebergNamespaceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IcebergNamespace>> {
        T::create_iceberg_namespace(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_iceberg_namespace(
        &self,
        req: crate::model::DeleteIcebergNamespaceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<()>> {
        T::delete_iceberg_namespace(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_iceberg_namespace(
        &self,
        req: crate::model::UpdateIcebergNamespaceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::UpdateIcebergNamespaceResponse>> {
        T::update_iceberg_namespace(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_iceberg_table_identifiers(
        &self,
        req: crate::model::ListIcebergTableIdentifiersRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListIcebergTableIdentifiersResponse>>
    {
        T::list_iceberg_table_identifiers(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn create_iceberg_table(
        &self,
        req: crate::model::CreateIcebergTableRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<api::model::HttpBody>> {
        T::create_iceberg_table(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_iceberg_table(
        &self,
        req: crate::model::DeleteIcebergTableRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<()>> {
        T::delete_iceberg_table(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_iceberg_table(
        &self,
        req: crate::model::GetIcebergTableRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<api::model::HttpBody>> {
        T::get_iceberg_table(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn load_iceberg_table_credentials(
        &self,
        req: crate::model::GetIcebergTableRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::LoadIcebergTableCredentialsResponse>>
    {
        T::load_iceberg_table_credentials(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_iceberg_table(
        &self,
        req: crate::model::UpdateIcebergTableRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<api::model::HttpBody>> {
        T::update_iceberg_table(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn register_iceberg_table(
        &self,
        req: crate::model::RegisterIcebergTableRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<api::model::HttpBody>> {
        T::register_iceberg_table(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_iceberg_catalog(
        &self,
        req: crate::model::GetIcebergCatalogRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IcebergCatalog>> {
        T::get_iceberg_catalog(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_iceberg_catalogs(
        &self,
        req: crate::model::ListIcebergCatalogsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListIcebergCatalogsResponse>> {
        T::list_iceberg_catalogs(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_iceberg_catalog(
        &self,
        req: crate::model::DeleteIcebergCatalogRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<()>> {
        T::delete_iceberg_catalog(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_iceberg_catalog(
        &self,
        req: crate::model::UpdateIcebergCatalogRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IcebergCatalog>> {
        T::update_iceberg_catalog(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn create_iceberg_catalog(
        &self,
        req: crate::model::CreateIcebergCatalogRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IcebergCatalog>> {
        T::create_iceberg_catalog(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn failover_iceberg_catalog(
        &self,
        req: crate::model::FailoverIcebergCatalogRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::FailoverIcebergCatalogResponse>> {
        T::failover_iceberg_catalog(self, req, options).await
    }
}
